<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% if age > 18 %}
    <div>大于18</div>
{% elif age == 18 %}
    <div>等于18</div>
{% else %}
    <div>小于18</div>
{% endif %}

{% for book in books %}
    <div>图书名称：{{book.name}}，作者：{{book.author}}</div>
{% endfor %}
</body>
</html>